package myzd.services;

import libedge.domain.exceptions.GenericException;
import myzd.client.domain.AccessTokenResponse;
import myzd.client.domain.LoginTokenResponse;
import myzd.domain.QiYeEmployee;
import myzd.domain.response.Department;
import myzd.domain.response.UserInfoResponse;

import java.io.IOException;
import java.util.List;

/**
 * @author zjm
 * @since 2017.10.23
 */
public interface UserService {
  //用户登陆
  LoginTokenResponse userSsoLogin(String ssoLogin,String request) throws GenericException;

  List<Department> getGroupList() throws GenericException;

  List<QiYeEmployee> getUserList() throws GenericException, IOException;

  AccessTokenResponse getUserAccessToken(String staffId) throws IOException, GenericException;

  UserInfoResponse getUserInfoByStaffId(String staffId) throws IOException, GenericException;

  AccessTokenResponse getUserAccessTokenByCode(String code) throws GenericException, IOException;
}
